package com.bv.hr.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bv.hr.system.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author CYT7
 * @version 1.0
 * @time 12月 24,2021
 * @describe user数据Mapper
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名查询用户
     * @param username 用户名
     * @return 用户信息
     */
    User findByName(@Param(value = "username") String username);
}
